<template>
    <div>
        信息
    </div>
</template>
<script setup>
import { inject, ref } from 'vue';
let axios = inject('axios')
let dept = ref({
    dname: 'zs',
    loc: 'sy'
})

axios.get('/getDeptList').then((res) => {
    console.log(res)
})
axios.get('/getDeptById?deptno=10').then((res) => {
    console.log(res)
})
axios.get('/getDeptByIdAndDname?deptno=10&dname=acc').then((res) => {
    console.log(res)
})

axios.post('/getDept', dept.value).then((res) => {
    console.log(res)
})
</script>